import { get, post } from "./request";


//根据文章id获取相关评论信息
export const getComments=(params) =>get(`/comment/getByArticleId`,params) 
//用户评论文章
export const SendComments=(params) =>post(`/comment/insert`,params) 
//根据文章id获取评论总数
export const getCommentsCount=(params) =>get(`/comment/getCountByArticleId`,params) 
//用户删除评论
export const deleteComments=(params) =>post(`/comment/delete`,params) 